// -----------------------------------------------------------
// Game Framework
// Copyright © 2024-2024 deadcycle. All rights reserved.
// Homepage: https://deadcycle.gitee.io
// Feedback: deadcycle@163.com
// -----------------------------------------------------------

using UnityEngine;

namespace ComponentAutoBind.Editor
{
    /// <summary>
    /// 编辑器组件绑定数据。
    /// </summary>
    public class BindData
    {
        private readonly string m_Name;
        private readonly Component m_BindComponent;

        /// <summary>
        /// 绑定组件命名。
        /// </summary>
        public string Name => m_Name;

        /// <summary>
        /// 绑定组件。
        /// </summary>
        public Component BindComponent => m_BindComponent;

        public BindData(string name, Component bindComponent)
        {
            m_Name = name;
            m_BindComponent = bindComponent;
        }
    }
}